using UnityEngine;

namespace EpicToonFX
{
    // [Assembly-CSharp.dll].EpicToonFX.ETFXButtonScript
    public class ETFXButtonScript : MonoBehaviour
    {
        // Fields
        public UnityEngine.GameObject Button;
        private UnityEngine.UI.Text MyButtonText;
        private string projectileParticleName;
        private EpicToonFX.ETFXFireProjectile effectScript;
        private ETFXProjectileScript projectileScript;
        public float buttonsX;
        public float buttonsY;
        public float buttonsSizeX;
        public float buttonsSizeY;
        public float buttonsDistance;
        
        // Methods
        private void Start()
        {
            this.effectScript = UnityEngine.GameObject.Find(name:  -1610607995).GetComponent<System.Object>();
            this.getProjectileNames();
            this.MyButtonText = this.Button.transform.Find(n:  -1610603171).GetComponent<System.Object>();
            goto mem[val_5] + 1512;
        }
        private void Update()
        {
            goto typeof(UnityEngine.UI.Text).__il2cppRuntimeField_5E8;
        }
        public void getProjectileNames()
        {
            if(this.effectScript.currentProjectile < this.effectScript.projectiles.Length)
            {
                    this.projectileScript = this.effectScript.projectiles[this.effectScript.currentProjectile].GetComponent<System.Object>();
                this.projectileParticleName = val_1.projectileParticle.name;
                throw new NullReferenceException();
            }
        
        }
        public bool overButton()
        {
            var val_13;
            UnityEngine.Rect val_1 = new UnityEngine.Rect(x:  this.buttonsX, y:  this.buttonsY, width:  this.buttonsSizeX, height:  this.buttonsSizeY);
            float val_12 = this.buttonsDistance;
            UnityEngine.Rect val_2;
            val_12 = this.buttonsX + val_12;
            val_2 = new UnityEngine.Rect(x:  val_12, y:  this.buttonsY, width:  this.buttonsSizeX, height:  this.buttonsSizeY);
            UnityEngine.Vector3 val_3 = UnityEngine.Input.mousePosition;
            UnityEngine.Vector3 val_5 = UnityEngine.Input.mousePosition;
            val_5.y = (float)UnityEngine.Screen.height - val_5.y;
            if((val_1.m_XMin.Contains(point:  new UnityEngine.Vector2())) != false)
            {
                    val_13 = 1;
                return (bool)val_2.m_XMin.Contains(point:  new UnityEngine.Vector2());
            }
            
            UnityEngine.Vector3 val_7 = UnityEngine.Input.mousePosition;
            UnityEngine.Vector3 val_9 = UnityEngine.Input.mousePosition;
            val_9.y = (float)UnityEngine.Screen.height - val_9.y;
            val_13;
            return (bool)val_2.m_XMin.Contains(point:  new UnityEngine.Vector2());
        }
        public ETFXButtonScript()
        {
        
        }
    
    }

}
